﻿@model BankCreditPortfolio.Models.ClientCabinetModels.CreditInfoModel
@{
    ViewBag.Title = "CreditInfo";
}
<strong>Credit Information</strong>
<p>
    Here you can find information about specified credit.</p>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Styles/forms.css")" rel="stylesheet" type="text/css" />
@{
    if (Model.Error != null)
    {
    @Html.DisplayTextFor(m => m.Error)
    }
}
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Credit Information</legend>
        <div class="editor-label">
            @Html.LabelFor(m => m.TariffTitle)
        </div>
        <div class="editor-field-text">
            @Html.ActionLink(Model.TariffTitle, "Tariff", "Home", new { tariffId = Model.TariffId }, null)
        </div>
        @if (Model.GuarantorExists) {
        <div class="editor-label">
            @Html.LabelFor(m => m.Guarantor)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Guarantor)
        </div>
            }
        <div class="editor-label">
            @Html.LabelFor(m => m.Currency)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.Currency)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.AgreementId)
        </div>
        <div class="editor-field-text">
            @Html.DisplayTextFor(m => m.AgreementId)
        </div>
    </fieldset>
    <p>
        @Html.ActionLink("Payments Management", "NextPayments", new
           {
               agreementId = Model.AgreementId,
           })
        &nbsp;
        <a href='@Url.Action("ShowAgreement", "ClientCabinet", new { agreementId = Model.AgreementId.ToString()})' target="_blank">Credit Agreement</a>
   </p> 
}